/*    */ package net.sourceforge.appgen.model;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ 
/*    */ public class Jstl
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private Entity entity;
/*    */ 
/*    */   public Jstl(Entity entity)
/*    */   {
/* 31 */     this.entity = entity;
/*    */   }
/*    */ 
/*    */   public String getPkInPageExp() {
/* 35 */     StringBuffer buffer = new StringBuffer();
/*    */ 
/* 37 */     for (Field field : this.entity.getPrimaryKeyFieldList()) {
/* 38 */       if (buffer.length() > 0) {
/* 39 */         buffer.append(", ");
/*    */       }
/* 41 */       buffer.append("'${" + this.entity.getInstanceName() + "." + field.getFieldName() + "}'");
/*    */     }
/*    */ 
/* 44 */     return buffer.toString();
/*    */   }
/*    */ 
/*    */   public Entity getEntity() {
/* 48 */     return this.entity;
/*    */   }
/*    */ 
/*    */   public void setEntity(Entity entity) {
/* 52 */     this.entity = entity;
/*    */   }
/*    */ }

/* Location:           C:\Users\lzl6066\Downloads\net.sourceforge.appgen_1.2.0\plugins\net.sourceforge.appgen_1.2.0.201002031718\
 * Qualified Name:     net.sourceforge.appgen.model.Jstl
 * JD-Core Version:    0.6.0
 */